#include "rom24c02.h"
#include "i2c.h"

uint8_t ROM_Write_Byte(uint8_t addr, uint8_t *data)
{
	return HAL_I2C_Mem_Write_IT(&hi2c1, ROM_ADDR, addr, I2C_MEMADD_SIZE_8BIT, data, 1);
}


uint8_t ROM_Read_Byte(uint8_t addr, uint8_t *data)
{
	return HAL_I2C_Mem_Read_IT(&hi2c1, ROM_ADDR, addr, I2C_MEMADD_SIZE_8BIT, data, 1);
}
